//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-03A
TN_Widget.CreateTable([['Sleater-Kinney & Amyl and The Sniffers','Pioneer Courthouse Square','Portland, OR','Wednesday','8/7/2024','7:00 PM','6277088','Sleater-Kinney---Amyl-and-The-Sniffers-8-7-2024'],['Ween','Pioneer Courthouse Square','Portland, OR','Thursday','8/8/2024','7:00 PM','6277087','Ween-8-8-2024'],['Ween','Pioneer Courthouse Square','Portland, OR','Friday','8/9/2024','7:00 PM','6277086','Ween-8-9-2024'],['The Descendents','Pioneer Courthouse Square','Portland, OR','Saturday','8/10/2024','6:15 PM','5592599','The-Descendents-8-10-2024'],['The Japanese House','Pioneer Courthouse Square','Portland, OR','Sunday','8/11/2024','7:00 PM','6277089','The-Japanese-House-8-11-2024'],['Sierra Ferrell','Pioneer Courthouse Square','Portland, OR','Monday','8/12/2024','7:00 PM','6277099','Sierra-Ferrell-8-12-2024'],['Ethel Cain','Pioneer Courthouse Square','Portland, OR','Tuesday','8/13/2024','7:00 PM','6277095','Ethel-Cain-8-13-2024'],['Yo La Tengo & Built To Spill','Pioneer Courthouse Square','Portland, OR','Wednesday','8/14/2024','7:00 PM','6277097','Yo-La-Tengo---Built-To-Spill-8-14-2024'],['Mt. Joy','Pioneer Courthouse Square','Portland, OR','Friday','8/16/2024','7:00 PM','6277096','Mt--Joy-8-16-2024'],['Waxahatchee','Pioneer Courthouse Square','Portland, OR','Saturday','8/17/2024','6:30 PM','6277085','Waxahatchee-8-17-2024'],['Alvvays','Pioneer Courthouse Square','Portland, OR','Sunday','8/18/2024','7:00 PM','6277040','Alvvays-8-18-2024'],['Sunny Day Real Estate','Pioneer Courthouse Square','Portland, OR','Wednesday','8/21/2024','7:00 PM','6227280','Sunny-Day-Real-Estate-8-21-2024'],['Portland Oktoberfest','Pioneer Courthouse Square','Portland, OR','Friday','9/20/2024','5:30 PM','6320329','Portland-Oktoberfest-9-20-2024'],['Portland Oktoberfest','Pioneer Courthouse Square','Portland, OR','Saturday','9/21/2024','11:00 AM','6320330','Portland-Oktoberfest-9-21-2024']],'Pioneer Square (Portland)','http://www.ticketnetwork.com/ticket/Pioneer-Square-(Portland)-events.aspx');